﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YummyGame.Framework
{
    public class ActionBuilder_chgvar : ActionBuilder
    {
        public override SkillActionPrototype Build(SkillDescriptorField field)
        {
            SkillActionPrototype_chgvar chgvar = Pools.GetSkillPrototype<SkillActionPrototype_chgvar>().Get();
            chgvar.var_name = ParseString(field, SkillKeyword.effect_chgvar_name);
            chgvar.value = ParseExpression(field, SkillKeyword.effect_chgvar_value);
            chgvar.change_type = ParseString(field, SkillKeyword.effect_chgvar_type);
            return chgvar;
        }
    }
}
